package com.jiazhong.pojo.moreTable;

import java.util.Date;
import java.util.List;

public class User {
   private Integer id;
   private String username;
   private String password;
   private Date birthday;
   private List<Order> orderList;
   private List<Role> roleList;

    public User() {
    }

    public User(Integer id, String username, String password, Date birthday, List<Order> orderList, List<Role> roleList) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.birthday = birthday;
        this.orderList = orderList;
        this.roleList = roleList;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return birthday
     */
    public Date getBirthday() {
        return birthday;
    }

    /**
     * 设置
     * @param birthday
     */
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    /**
     * 获取
     * @return orderList
     */
    public List<Order> getOrderList() {
        return orderList;
    }

    /**
     * 设置
     * @param orderList
     */
    public void setOrderList(List<Order> orderList) {
        this.orderList = orderList;
    }

    /**
     * 获取
     * @return roleList
     */
    public List<Role> getRoleList() {
        return roleList;
    }

    /**
     * 设置
     * @param roleList
     */
    public void setRoleList(List<Role> roleList) {
        this.roleList = roleList;
    }

    public String toString() {
        return "User{id = " + id + ", username = " + username + ", password = " + password + ", birthday = " + birthday + ", orderList = " + orderList + ", roleList = " + roleList + "}";
    }
}
